package com.fengbaogu.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fengbaogu.handlers.ServerHandler;

@RestController
public class MyTest {
	
	@Autowired
	private ServerHandler serverHandler;
	
	@RequestMapping("/hi")
	public String home() {
		for (int i = 0; i <10; i++) {
			serverHandler.sendMessage("s1","主动发的消息");
		}	
		
		return "hii am from port:";
	}
	
}
